package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data //自动生成getset方法
@AllArgsConstructor //全参
@NoArgsConstructor //空参
//前端获取当前信息提示
public class CommonResult<T>{

    private Integer code;
    private String message;
    private T      data;

    //两参构造方法
    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
